package net.dfrz.oa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.dfrz.oa.dao.repository.OneCategoryRepository;
import net.dfrz.oa.pojo.OneCategory;
import net.dfrz.oa.service.OneCategoryService;

@Service
public class OneCategoryServiceImpl implements OneCategoryService{

	@Autowired
	private OneCategoryRepository oneCategoryRepository;
	/**
	 * 根据权限查询出一级菜单
	 */
	@Override
	public OneCategory getByaid(Integer id) {
		return oneCategoryRepository.findByAid(id);
	}

}
